/**
 * 用户与权限--- 部门
 * @author wuh 2020-05-11
 */
import request from '@/utils/request'

const API = '/api'

// 新增或修改部门
export function updateDepartment(query) {
  return request({
    url: API + '/v1/userAndRight/sysDepartment/updateDepartment',
    method: 'post',
    data: query
  })
}

// 查询部门列表
export function queryDepartmentList(query) {
  return request({
    url: API + '/v1/userAndRight/sysDepartment/queryDepartmentList',
    method: 'post',
    data: query
  })
}

// 删除部门
export function delDepartment(formObj) {
  return request({
    url: API + '/v1/userAndRight/sysDepartment/delDepartment',
    method: 'post',
    data: formObj
  })
}

// 查询部门
export function queryDepartment(formObj) {
  return request({
    url: API + '/v1/userAndRight/sysDepartment/queryDepartment',
    method: 'post',
    data: formObj
  })
}
